package com.TestInterface;

/**
 * @Package: com.TestInterface
 * @ClassName: MyData
 * @Author: h2cloud
 * @CreateTime: 2021/4/14 9:52 下午
 * @Description:
 */
public interface MyData {
    default void print(String str) {
        if (!isNull(str))
            System.out.println("MyData Print::" + str);
    }

    default boolean isNull(String str) {
        System.out.println("Interface Null Check");

        return str == null ? true : "".equals(str) ? true : false;
    }


}
